package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 地区业务对象 sys_area
 *
 * @author ruoyi
 * @date 2024-04-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysAreaBo extends BaseEntity {

    /**
     * 索引ID
     */
    @NotNull(message = "索引ID不能为空", groups = { EditGroup.class })
    private Long areaId;

    /**
     * 地区名称
     */
    @NotBlank(message = "地区名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaName;

    /**
     * 地区父ID
     */
    @NotNull(message = "地区父ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long areaParentId;

    /**
     * 地区深度，从1开始
     */
    @NotNull(message = "地区深度，从1开始不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long areaDeep;

    /**
     * 检索全名值
     */
    @NotBlank(message = "检索全名值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fullName;

    /**
     * 检索值
     */
    @NotBlank(message = "检索值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shortName;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaBoundaryCoordinates;


}
